Skip to content

Add missing support for hsl format syntax without comma#13

Open
GuillaumeGomez wants to merge 2 commits intoandyjansson:masterfrom
GuillaumeGomez:full-hsl
Open

Add missing support for hsl format syntax without comma#13
GuillaumeGomez wants to merge 2 commits intoandyjansson:masterfrom
GuillaumeGomez:full-hsl

Conversation

@GuillaumeGomez
Copy link

@GuillaumeGomez GuillaumeGomez commented Apr 26, 2023

Your hsl parsing only supports with commas whereas it's also possible to only separate values with whitespace characters:

hsl(hue saturation lightness)
hsl(hue saturation lightness / alpha)

hsl(hue, saturation, lightness)
hsl(hue, saturation, lightness, alpha)

hsla(hue saturation lightness)
hsla(hue saturation lightness / alpha)

hsla(hue, saturation, lightness)
hsla(hue, saturation, lightness, alpha)

From MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/hsl#syntax

@LarsFlieger
Copy link

@andyjansson This should be merged :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants